package com.hmsproject.datastructures.deal;

import java.util.Collections;
import java.util.Date;
import java.util.List;

import com.hmsproject.datastructures.comparators.CriterionComparator;

public class DealDetails {
	
	public List<Criterion> getCriterions() {
		return criterions;
	}

	public void setCriterions(List<Criterion> criterions) {
		this.criterions = criterions;
		Collections.sort(this.criterions,CriterionComparator.getInstance());
	}

	public Date getCutOff() {
		return cutOff;
	}

	public void setCutOff(Date cutOff) {
		this.cutOff = cutOff;
	}

	List<Criterion> criterions;
	Date cutOff;
	
	public DealDetails(List<Criterion> criterions,Date cutOff){
		this.criterions = criterions;
		this.cutOff = cutOff;
		Collections.sort(this.criterions,CriterionComparator.getInstance());
	}

}
